//
//  NetworkManager.h
//  MessangerSkeleton
//
//  Created by User-23 on 4/17/14.
//  Copyright (c) 2014 IOTrainingCamp. All rights reserved.
//

#import "CCNode.h"
#import "cocos2d.h"
#import "Configuration.h"

#import <GameKit/GameKit.h>
#import "MultipeerConnectivity/MultipeerConnectivity.h"

#import "NetworkProtocol.h"


@interface NetworkManager : CCNode

@property(nonatomic) BOOL areObserversOnLevelSceneAdded;
@property(nonatomic) BOOL isAlertViewDisplayedEndConnection;
@property(nonatomic) BOOL isBrowserPresented;
@property(nonatomic) NSTimeInterval ping;

+ (id)sharedInstance;

- (void)startLookingForOponent;
- (void)sendEnemyInformation:(EnemyInfo)enemyInfo;
- (void)sendToOpponentLevel:(int)level
           andCharacterType:(MessengerSpriteType)gameType;
- (void)sendThatThePlayerIsReadyToPlay;

- (void)endSession;

- (void)dismissBrowserController;
@end
